#include "DialogBar.hpp"

DialogBar::DialogBar()
{

}

DialogBar::DialogBar(  int maxValue,
            const std::string& frontImgLink,
            const std::string& backImgLink,
            float period)
        :m_maxValue(maxValue),
        m_frontSkin(SpriteManager::get()->sprite(frontImgLink)),
        m_backSkin(SpriteManager::get()->sprite(backImgLink)),
        m_period(period),
        m_value(m_maxValue),
        m_elapsedTime(0)
{}

DialogBar::~DialogBar()
{

}

void DialogBar::update(float dt)
{
    m_elapsedTime += dt;
    if(m_elapsedTime > m_period){}
}

void DialogBar::show(sf::RenderTarget& wdw) const
{

}
